package com.atguigu.gulimall.product.feign;

import com.atguigu.common.to.SkuReductionTo;
import com.atguigu.common.to.SpuBoundTo;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 描述：
 * 优惠信息远程服务接口
 *
 * @author zengjinjin
 * @version 1.0
 * @date 2021/12/4 16:00
 */

@FeignClient("gulimall-coupon")
public interface FeignCouponService {

    /**
     * 保存
     */
    @PostMapping("coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundTo spuBoundTo);

    /**
     * 保存sku信息
     */
    @RequestMapping("/coupon/skufullreduction/saveinfo")
    R saveinfo(@RequestBody SkuReductionTo skuReductionTo);
}
